# -*- coding: utf-8 -*-
import wx.stc
import keyword_c
import keyword_mel

def genKeywords():
	return keyword_c.kwlist + keyword_mel.kwlist


def setFont(self):
	# White space
	self.StyleSetSpec(wx.stc.STC_C_DEFAULT, 'fore:#000000')
	# Comment
	self.StyleSetSpec(wx.stc.STC_C_COMMENT, 'fore:#007F00')
	self.StyleSetSpec(wx.stc.STC_C_COMMENTDOC, 'fore:#007F00')
	self.StyleSetSpec(wx.stc.STC_C_COMMENTDOCKEYWORD, 'fore:#007F00')
	self.StyleSetSpec(wx.stc.STC_C_COMMENTDOCKEYWORDERROR, 'fore:#007F00')
	self.StyleSetSpec(wx.stc.STC_C_COMMENTLINE, 'fore:#007F00')
	self.StyleSetSpec(wx.stc.STC_C_COMMENTLINEDOC, 'fore:#007F00')
	# Number
	self.StyleSetSpec(wx.stc.STC_C_NUMBER, 'fore:#007F7F')
	# String
	self.StyleSetSpec(wx.stc.STC_C_STRING, 'fore:#7F007F')
	# Single quoted string
	#self.StyleSetSpec(stc.STC_C_CHARACTER, 'fore:#7F007F:face:%(times)s:size:%(size)d' % faces)
	# Keyword
	self.StyleSetSpec(wx.stc.STC_C_WORD, 'fore:#AA00FF:bold')
	self.StyleSetSpec(wx.stc.STC_C_WORD, 'fore:#0000FF:bold')
	# Operators
	self.StyleSetSpec(wx.stc.STC_C_OPERATOR, 'fore:#800000:bold')
	# Identifiers
	self.StyleSetSpec(wx.stc.STC_C_IDENTIFIER, 'fore:#604040')
	# End of line where string is not closed
	self.StyleSetSpec(wx.stc.STC_C_STRINGEOL, 'fore:#000000:face:%(mono)s:back:#E0C0E0:eol')
	self.StyleSetSpec(wx.stc.STC_C_PREPROCESSOR, 'fore:#FF0000')
	self.StyleSetSpec(wx.stc.STC_C_REGEX, 'fore:#FF0000')
	self.StyleSetSpec(wx.stc.STC_C_UUID, 'fore:#FF0000')
	self.StyleSetSpec(wx.stc.STC_C_VERBATIM, 'fore:#FF0000')

